package com.zhdl.hardware.plc.siemens_tcpip.service.impl;

import com.zhdl.common.ytools.callback.CommonCallback;
import com.zhdl.hardware.plc.siemens_tcpip.repository.SiemensTcpPortCmdHandleDao;
import com.zhdl.hardware.plc.siemens_tcpip.service.SiemensTcpCmdSendService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class SiemensTcpCmdSendServiceImpl implements SiemensTcpCmdSendService {

    @Resource
    public SiemensTcpPortCmdHandleDao siemensTcpPortCmdHandleDao;

    @Resource
    public ThreadPoolTaskScheduler taskScheduler1;


    @Override
    public void readSiemensTcpDate(String port, CommonCallback<String> callback) {
        siemensTcpPortCmdHandleDao.readSiemensTcpIPDate(port, callback);
    }
}
